package deepbrain.simnetwork.factory;

import deepbrain.simnetwork.exception.SimNetworkException;
import deepbrain.simnetwork.network.NetworkState;
import deepbrain.simnetwork.network.NodeState;

/**
 * 
 * 
 * @author Li Yang
 * @create 2009-2-23
 */
public class SilentNetworkStateFactory implements NetworkStateFactory {

	public NetworkState newNetworkState(int numOfNodes)
			throws SimNetworkException {
		NodeState[] nodeStates = new NodeState[numOfNodes];
		for (int i = 0; i < numOfNodes; i++)
			nodeStates[i] = NodeState.CERTAIN_SILENT;
		return new NetworkState(nodeStates);
	}

}
